// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import scan from './scanfile'
import iView from 'iview'
// css样式
import './style/index.scss'
import store from './store.js'
import ElementUI from 'element-ui'
import axios from '@/assets/js/axios.js'
import AudioPlayer from './assets/js/audio'
import drap from './assets/js/drap'
import 'iview/dist/styles/iview.css'

import '@/assets/js/iframeProxy.js';

Vue.prototype.$axios = axios.axios
// 把audio挂载到 vue原型上
Vue.use(AudioPlayer)
Vue.use(ElementUI)
Vue.use(iView)
Vue.directive('drag', {bind: drap.bind})
Vue.use(scan)
Vue.config.productionTip = false
// Vue.use(iView)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
